/**
 * @Author:AwakeningCode
 * @Date: Created in 17:17 2018\1\19 0019
 */
public class test {

    public static void main(String[] args) {
        String str = "abc";
        String str2 = "abc";
        String a="a";
        String b="b";
        String b1="b";

        System.out.println(a.compareTo(b));
        System.out.println(b.compareTo(b1));
        System.out.println(b.compareTo(a));

        /*if(str == str2){
            System.out.println(true);
        }else{
            System.out.println(false);
        }*/

        /*if (str != null && !str.equals(" ")){
            System.out.println("str不为空");
        }else{
            System.out.println("str为空");
        }*/
    }

}
